#ifndef __CRC16_H__
#define __CRC16_H__

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

extern unsigned short CRC16CheckSum(unsigned char *pchMessage,unsigned int dwLength,unsigned short wCRC); 
extern unsigned int CRC16Verify(unsigned char* pchMessage, unsigned int dwLength);
extern void CRC16Append(unsigned char* pchMessage, unsigned int dwLength);

/*
** global const variable 
*/ 
extern const unsigned short CRC16Table[256];
extern const unsigned short CRC16_INIT; 


#ifdef __cplusplus
}
#endif

#endif
